package cn.imokay.springboot.yml.controller;

import cn.imokay.springboot.yml.configmodel.ConfigModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 孟震
 */
@RestController
public class HelloSpringbootYmlController {
    @Autowired
    private ConfigModel model;

    @RequestMapping("hello")
    public String helloSpringboot(){
        System.out.println(model.toString());

        return model.toString();
    }
}
